<!--组件-币-->
<template>
  <div class="cell"  @click="click(item)" >

    <text class="font32 text2" v-if="item.equity == undefined">{{item.coinName}}</text>
    <div class="column" v-else>
      <text class="font32 text2">{{item.coinName}}</text>
      <div  class="all"></div>
      
      <div class="row acenter" v-if="quity" @click="quityClick" >
        <LImage class="img-explain" :src="Config.img('v2_wenhao.png')"></LImage>
        <text class="font24 text3">{{T('提现权益')+"："+item.equity}}</text>
      </div>
      <text class="font24 text3" v-else>{{T('含提现权益、优先抵扣')}}</text>
    </div>

    <div class="all"></div>
    <div class="column aend">
      <div class="row acenter">
        <text class="font32 text2">{{item.coinNum}}</text>
        <LImage class="img-arrow" :src="Config.img('jiantou_lan.png')"></LImage>
      </div>
      <div class="all"></div>
      <div class="row acenter">
       <text class="font24 text3" v-if="item.coinName=='VT'"></text>
       <text class="font24 text3" v-else>{{'≈ '+item.model+" "+unit}}</text>
       <div class="width26"></div>
      </div>
    </div>

    <div class="line line1"></div>
  </div>
</template>

<style src="@/_css/style.css" ></style>
<style scoped>
.cell{
  flex-direction: row;
  align-content: center;

  height:145px;

  padding-left: 40px;
  padding-right: 40px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.img-explain {
  width:26px;
  height:26px;

  margin-right: 6px;
}
.img-arrow {
  width: 16px;
  height: 26px;
  margin-left: 10px;
}
.line {
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  bottom: 0;
}
.width26 {
  width: 26px;
}
</style>

<script>


//功能
import jconfig from "@/_js/config";
import jmodal from "@/_js/modal";

import I18N from "@/_i18n/i18n";
var T = I18N.t;

export default {
  
  props: {
    item:Object,
    unit:String,
    quity:{
      type:Boolean,
      default:true,
    },
  },

  data() {
    return {
      T:T,
      Config:jconfig,
    };
  },

  created() {
    
  },

  methods: {

    /******************************* 点击*/
    //权益
    quityClick() {
      jmodal.alert(T('只有带提现权益的VTN才可以提现。'));
    },

    //币点击
    click(item){
      this.$emit('click', item);
    },
  }
}
</script>

